import http from '@/common/http.js'

// 保存学生体检信息
export function saveExamination(data) {
	return http({
		url: '/Examination/SaveExamination',
		method: 'post',
		data: data
	})
}
// 获取学生体检信息
export function getExaminationInfo(data) {
	return http({
		url: '/Examination/GetExaminationInfo',
		method: 'get',
		data: data
	})
}

// 获取学生信息
export function getStudentInfo(data) {
	return http({
		url: '/Student/GetStudentInfo',
		method: 'get',
		data: data
	})
}

// 用户登录
export function userLogin(data) {
	return http({
		url: '/User/UserLogin',
		method: 'get',
		data: data
	})
}

// 获取用户信息
export function getInfoByToken(data) {
	return http({
		url: '/User/GetInfoByToken',
		method: 'get',
		data: {
			token: data
		}
	})
}

// 获取数据字典
export function getDictionaryItems(key) {
	return http({
		url: '/Dictionary/GetDictionaryItems',
		method: 'get',
		data: {
			key: key
		}
	})
}
// 获取体检结论
export function  getConclusion(data) {
	return http({
		url: '/ScoringCriteria/GetConclusion',
		method: 'get',
		data: data
	})
}